﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Reports.ascx.cs" Inherits="DanhMuc_Reports" %>
<center>
    <asp:Panel ID="pnGroupGrid" runat="server" Width="100%">
        <asp:DataGrid Width="100%" ID="datagrid" runat="server" AutoGenerateColumns="False"
            PageSize="20" OnItemCommand="datagrid_ItemCommand" OnItemDataBound="datagrid_ItemDataBound"
            AllowPaging="True" OnPageIndexChanged="datagrid_PageIndexChanged">
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <AlternatingItemStyle CssClass="DarkRow"></AlternatingItemStyle>
            <ItemStyle CssClass="LightRow"></ItemStyle>
            <HeaderStyle Font-Bold="True" CssClass="HeaderRow"></HeaderStyle>
            <Columns>              
                 <asp:BoundColumn ItemStyle-HorizontalAlign="left" DataField="ReportName" HeaderText="Tên báo cáo">
                    <HeaderStyle CssClass="HeaderRow"></HeaderStyle>
                </asp:BoundColumn>
                <asp:BoundColumn ItemStyle-HorizontalAlign="left" DataField="ReportId" HeaderText="File tổng hợp">
                    <HeaderStyle CssClass="HeaderRow"></HeaderStyle>
                </asp:BoundColumn>
               
                <asp:BoundColumn ItemStyle-HorizontalAlign="left" DataField="TenFile" HeaderText="File báo cáo">
                </asp:BoundColumn>
                <asp:BoundColumn Visible="false" ItemStyle-HorizontalAlign="center" DataField="SEP_CN"
                    HeaderText="SEP_CN"></asp:BoundColumn>
                <asp:BoundColumn Visible="false" ItemStyle-HorizontalAlign="center" DataField="KSV_QC_CN"
                    HeaderText="KSV_QC_CN"></asp:BoundColumn>
                <asp:BoundColumn Visible="false" ItemStyle-HorizontalAlign="center" DataField="KSV_QC_PGD"
                    HeaderText="KSV_QC_PGD"></asp:BoundColumn>
                <asp:BoundColumn Visible="false " ItemStyle-HorizontalAlign="center" DataField="GDV_PGD"
                    HeaderText="GDV_PGD"></asp:BoundColumn>
                <asp:TemplateColumn>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    <ItemTemplate>
                        <asp:Button CausesValidation="False" ID="cmdEdit" runat="server" Text="Sửa" Width="40"
                            CommandName="cmdEdit"></asp:Button>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    <ItemTemplate>
                        <asp:Button CausesValidation="False" ID="cmdDelete" runat="server" Text="Xóa" Width="40"
                            CommandName="cmdDelete"></asp:Button>
                    </ItemTemplate>
                </asp:TemplateColumn>
            </Columns>
        </asp:DataGrid>&nbsp;<asp:Button ID="cmdAddNew" runat="server" Text="Thêm mới" OnClick="cmdAddNew_Click">
        </asp:Button>
    </asp:Panel>
    <asp:Panel ID="pnEdit" runat="server" Width="500px">
        <table class="Area" style="border-right: gray 1px solid; border-top: gray 1px solid;
            border-left: gray 1px solid; border-bottom: gray 1px solid" cellspacing="5" cellpadding="0"
            width="500" border="0">
            <tr>
                <td style="color: blue" align="center" colspan="3">
                    <asp:Label ID="lblMode" runat="server" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" style="border-bottom: 1px solid blue; color: Blue;">
                    THÔNG TIN BÁO CÁO <asp:Label runat="server" ID="txtID"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" class="SubHead">
                    Tên báo cáo</td>
                <td width="70%">
                    <asp:TextBox ID="txtTenBaoCao" runat="server" Width="99%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" class="SubHead">
                    File tổng hợp</td>
                <td>
                    <asp:TextBox ID="txtReportId" runat="server" Width="99%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" class="SubHead">
                    File báo cáo</td>
                <td>
                    <asp:TextBox runat="server" ID="txtTenFile" Width="99%"></asp:TextBox>
                </td>
            </tr>
            <%--<tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" style="border-bottom: 1px solid blue; color: Blue;">
                    CÁC TIÊU CHÍ LỌC DỮ LIỆU
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" class="SubHead">
                    <asp:CheckBox runat="server" ID="TinhChatAC" Text="Tính chất ấn chỉ" />
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" class="SubHead">
                    <asp:CheckBox runat="server" ID="DotPhatHanh" Text="Đợt phát hành" />
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" class="SubHead">
                    <asp:CheckBox runat="server" ID="LoaiAnChi" Text="Loại ấn chỉ" />
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" class="SubHead">
                    <asp:CheckBox runat="server" ID="TuNgay" Text="Từ ngày" />
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" class="SubHead">
                    <asp:CheckBox runat="server" ID="DenNgay" Text="Đến ngày" />
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" class="SubHead">
                    <asp:CheckBox runat="server" ID="KhoDen" Text="Kho đến" />
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" class="SubHead" colspan="2">
                    <asp:CheckBox runat="server" ID="CN" Text="Chi nhánh" />
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" class="SubHead">
                    <asp:CheckBox runat="server" ID="PGD" Text="PGD" />
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" class="SubHead">
                    <asp:CheckBox runat="server" ID="GDV" Text="GDV" />
                </td>
            </tr>--%>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" style="border-bottom: 1px solid blue; color: Blue;">
                    PHÂN QUYỀN XEM BÁO CÁO
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" class="SubHead">
                    <asp:CheckBox runat="server" ID="SEP_CN" Text="Người quản lý" />
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" class="SubHead">
                    <asp:CheckBox runat="server" ID="KSV_QC_CN" Text="Giám đốc chi nhánh" />
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" class="SubHead">
                    <asp:CheckBox runat="server" ID="KSV_QC_PGD" Text="Trưởng nhóm bán hàng" />
                </td>
            </tr>
            <tr>
                <td width="10">
                </td>
                <td align="left" colspan="2" class="SubHead">
                    <asp:CheckBox runat="server" ID="GDV_PGD" Text="Nhân viên bán hàng" />
                </td>
            </tr>
            <tr>
                <td style="color: red; font-family: arial" align="center" colspan="3" height="10">
                    <asp:Label ID="lblError" runat="server"></asp:Label><asp:Label ID="lblUpdateStatus"
                        runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="3">
                    <asp:Button ID="cmdUpdate" Width="72px" Text="Cập nhật" runat="server" CausesValidation="true"
                        OnClick="cmdUpdate_Click"></asp:Button>
                    <asp:Button ID="cmdCancel" Width="72" Text="Quay lại" runat="server" CausesValidation="False"
                        OnClick="cmdCancel_Click"></asp:Button>
                </td>
            </tr>
        </table>
    </asp:Panel>
</center>
